package cmo.yxqz.freemarker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 鱼香茄子
 * @data 2021/10/25
 */

@EnableSwagger2
@SpringBootApplication
public class FreeMarkerTestApplication {
    public static void main(String[] args) {
        SpringApplication.run(FreeMarkerTestApplication.class,args);
    }


    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate(new OkHttp3ClientHttpRequestFactory());
    }


}
